# Maintainer: Your Name <youremail at domain dot com> (disguise your email to protect against spam)

pkgname=(ude-pam-helper)
_datever=20110610
_miniver=1
pkgver=$_datever.$_miniver
pkgrel=4
pkgdesc=""
arch=('any')
url=""
license=('GPL3')
groups=()
depends=(python2 twisted python-pam)
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(main.tac RPC.py rc.ude-pam-helper)
noextract=()
md5sums=('0f2b1a20c669af13a76659fd10e7730b'
         '3b21e1eb18d5d7f7acb9b56f96b2f640'
         '7e30d04683084749a6e03eef16b92140')

build() {
	echo "No build required for python."
}

package() {
	mkdir -p $pkgdir/var/log
	mkdir -p $pkgdir/var/run
	
	mkdir -p $pkgdir/opt/ude/bin/pam-helper
	cp $srcdir/main.tac $srcdir/RPC.py $pkgdir/opt/ude/bin/pam-helper
	
	mkdir -p $pkgdir/etc/rc.d
	cp $srcdir/rc.ude-pam-helper $pkgdir/etc/rc.d/ude-pam-helper
	chmod a+x $pkgdir/etc/rc.d/ude-pam-helper
}
